//如果导入多个函数，要加{},并用，隔开；如果导入一个函数，加不加{}无区别
import { createStore } from "vuex"
import createPersistedstate from 'vuex-persistedstate'
import { user } from './modules/user'
import { cart } from './modules/cart'
import { category } from './modules/category'
//创建vuex仓库并导出
export default createStore({
    modules: {
        user,
        cart,
        category

    },
    plugins: [
        createPersistedstate()
    ]


})